{{include file='admin/include/inside_header.php'}}
<body>
<div class="container-fluid">
      <div class="row">
         <div class="col-md-12">
         	<div class="bs-section">
               <a href="admin/role/toAdd" class="btn btn-primary btn-sm wchat_btn">添加</a>
			   <button onclick="batchDeleteFun('admin/region/delete');" type="button" class="btn btn-primary btn-sm wchat_btn">删除</button>
              
               <!--考虑封装成datagrid组件-->
               <div class="table-responsive" style="margin-top:5px;">
                  <table class="table table-hover table-condensed table-bordered ">
                    <thead class="datagrid_header">
                      <tr>
                      	<th><input value="checkAll" class="check_all" type="checkbox"></th><th>ID</th>
<th>父节点</th>
<th>名称</th>
<th>类型</th>
<th>代理ID</th>
<th>操作</th>
</tr>
                    </thead>
                    <tbody>
					{{foreach $list as $a}}
                      <tr onclick="checkDataGridRow('{{$a.id}}');">
                      	<td><input name='SelectedID' id="select_{{$a.id}}" value="{{$a.id}}" type="checkbox"></td><th>{{$a.id}}</th>
<td>{{$a.parent_id}}</td>
<td>{{$a.region_name}}</td>
<td>{{$a.region_type}}</td>
<td>{{$a.agency_id}}</td>
<td><button  onclick="batchDeleteFun('admin/region/delete','{{$a.id}}');" type="button" class="btn btn-default btn-xs wchat_btn">删除</button>
							<a href="admin/region/toAdd?id={{$a.id}}" class="btn btn-default btn-xs wchat_btn">修改</a>
						</td>
                      </tr>
                  	{{/foreach}}
                    </tbody>
                  </table>
                </div>
                <!--pager-->
                {{include file='admin/include/pager.php'}}
            </div>
		</div>
      </div>
</div>
<!-- dialog -->
<div id="dd"></div>
{{include file='admin/include/footer.php'}}
</body>
</html>